<div class="weui-tab">

  <weui-navbar #navbar (activated)="onActivated($event)" [activeIndex]="getTabActivated()">
    <weui-navbar-item value="1" [ngStyle]="{'background-color':activeValue === '1' ? '#fafafa' : '#eaeaea'}">
      未完成任务&nbsp;
      <weui-badge *ngIf="getProcessingCount() > 0">{{getProcessingCount()}}</weui-badge>
    </weui-navbar-item>
    <weui-navbar-item value="2" [ngStyle]="{'background-color':activeValue === '2' ? '#fafafa' : '#eaeaea'}">
      已完成任务
    </weui-navbar-item>
  </weui-navbar>

  <div class="weui-tab__panel">

    <weui-items>
      <app-weui-searchbar (search)="search($event)"></app-weui-searchbar>

      <!--<weui-link href="javascript:void(0);" style="text-decoration: none;" baseCls="link" [noPushArrow]="true" (click)="showPicker()">-->
        <!--<p weui-content class="mb-0">排查类型</p>-->
        <!--<p weui-last weui-note class="mb-0">{{filterType? filterType:'全部'}}</p>-->
      <!--</weui-link>-->

      <weui-link href="javascript:void(0);" style="text-decoration: none;" baseCls="link" [noPushArrow]="true" (click)="scan()">
        <p weui-content class="mb-0">扫一扫</p>
        <div class="mb-0" weui-last><img src="assets/imgs/qrcode.jpg" style="width: 10%; height: 10%;"></div>
      </weui-link>

    </weui-items>

    <weui-picker #picker1 [menu]="taskMenu" [value]="value"></weui-picker>

    <app-expert-task-list *ngIf="activeValue==='1'"
      [values]="valuesForRiskCheckTaskList"
      (detailFired)="detail($event)"
      (actionFired)="actionHandle($event)">
    </app-expert-task-list>

    <app-risk-execution-list *ngIf="activeValue==='2'"
      [values]="valuesForRiskCheckExectionList"
      (detailFired)="executionDetail($event)">
    </app-risk-execution-list>


    <weui-loadmore line >{{remindTxt}}</weui-loadmore>


    <!--<div class="weui-btn-area mb-1" *ngIf="loadMore">-->
      <!--<weui-button color="primary" (click)="onScroll()">加载更多</weui-button>-->
    <!--</div>-->

    <div class="weui-btn-area mb-1" *ngIf="loadMore">
      <a color="primary" weui-button="" (click)="onScroll()" class="weui-btn weui-btn_primary"><span class="text-white">加载更多</span></a>
    </div>

  </div>
</div>
